import request from '@/utils/request'

// 查询评价/评估报告分页
export function pageAssessmentReport(query) {
  return request({
    url: '/risk/assessmentReport/page',
    method: 'get',
    params: query,
    factoryId:true,
  })
}

// 查询评价/评估报告列表
export function listAssessmentReport(query) {
  return request({
    url: '/risk/assessmentReport/list',
    method: 'get',
    params: query,
    factoryId:true
  })
}

// 查询评价/评估报告详细
export function getAssessmentReport(id) {
  return request({
    url: '/risk/assessmentReport/info/' + id,
    method: 'get'
  })
}

// 新增评价/评估报告
export function addAssessmentReport(data) {
  return request({
    url: '/risk/assessmentReport',
    method: 'post',
    data: data,
    factoryId:true,
  })
}

// 修改评价/评估报告
export function updateAssessmentReport(data) {
  return request({
    url: '/risk/assessmentReport',
    method: 'put',
    data: data
  })
}

// 删除评价/评估报告
export function delAssessmentReport(data) {
  return request({
    url: '/risk/assessmentReport/remove/batch',
    method: 'delete',
    data
  })
}

// 导出评价/评估报告
export function exportAssessmentReport(query) {
  return request({
    url: '/risk/assessmentReport/export',
    method: 'get',
    params: query
  })
}

// 下载模板评价/评估报告
export function downImportTemplate() {
  return request({
    url: '/risk/assessmentReport/importTemplate',
    method: 'get'
  })
}
